#!/bin/python
def list_add(a):
    c = []
    for i in range(len(a) -1):
        c.append(a[i]+a[i+1])
    return c

if __name__ == '__main__':
    a =  [1,4,9, 16,2,5, 10,15]
    print(list_add(a))

# 完成的不错
